﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000481 RID: 1153
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class EnterStrongChallengeActivityStageScRsp : IMessage<EnterStrongChallengeActivityStageScRsp>, IMessage, IEquatable<EnterStrongChallengeActivityStageScRsp>, IDeepCloneable<EnterStrongChallengeActivityStageScRsp>, IBufferMessage
	{
		// Token: 0x17000ED9 RID: 3801
		// (get) Token: 0x060033E9 RID: 13289 RVA: 0x0008EC67 File Offset: 0x0008CE67
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<EnterStrongChallengeActivityStageScRsp> Parser
		{
			get
			{
				return EnterStrongChallengeActivityStageScRsp._parser;
			}
		}

		// Token: 0x17000EDA RID: 3802
		// (get) Token: 0x060033EA RID: 13290 RVA: 0x0008EC6E File Offset: 0x0008CE6E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return EnterStrongChallengeActivityStageScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000EDB RID: 3803
		// (get) Token: 0x060033EB RID: 13291 RVA: 0x0008EC80 File Offset: 0x0008CE80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return EnterStrongChallengeActivityStageScRsp.Descriptor;
			}
		}

		// Token: 0x060033EC RID: 13292 RVA: 0x0008EC87 File Offset: 0x0008CE87
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterStrongChallengeActivityStageScRsp()
		{
		}

		// Token: 0x060033ED RID: 13293 RVA: 0x0008EC90 File Offset: 0x0008CE90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterStrongChallengeActivityStageScRsp(EnterStrongChallengeActivityStageScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.stageId_ = other.stageId_;
			this.battleInfo_ = ((other.battleInfo_ != null) ? other.battleInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060033EE RID: 13294 RVA: 0x0008ECE8 File Offset: 0x0008CEE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterStrongChallengeActivityStageScRsp Clone()
		{
			return new EnterStrongChallengeActivityStageScRsp(this);
		}

		// Token: 0x17000EDC RID: 3804
		// (get) Token: 0x060033EF RID: 13295 RVA: 0x0008ECF0 File Offset: 0x0008CEF0
		// (set) Token: 0x060033F0 RID: 13296 RVA: 0x0008ECF8 File Offset: 0x0008CEF8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17000EDD RID: 3805
		// (get) Token: 0x060033F1 RID: 13297 RVA: 0x0008ED01 File Offset: 0x0008CF01
		// (set) Token: 0x060033F2 RID: 13298 RVA: 0x0008ED09 File Offset: 0x0008CF09
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint StageId
		{
			get
			{
				return this.stageId_;
			}
			set
			{
				this.stageId_ = value;
			}
		}

		// Token: 0x17000EDE RID: 3806
		// (get) Token: 0x060033F3 RID: 13299 RVA: 0x0008ED12 File Offset: 0x0008CF12
		// (set) Token: 0x060033F4 RID: 13300 RVA: 0x0008ED1A File Offset: 0x0008CF1A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneBattleInfo BattleInfo
		{
			get
			{
				return this.battleInfo_;
			}
			set
			{
				this.battleInfo_ = value;
			}
		}

		// Token: 0x060033F5 RID: 13301 RVA: 0x0008ED23 File Offset: 0x0008CF23
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as EnterStrongChallengeActivityStageScRsp);
		}

		// Token: 0x060033F6 RID: 13302 RVA: 0x0008ED34 File Offset: 0x0008CF34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(EnterStrongChallengeActivityStageScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.StageId == other.StageId && object.Equals(this.BattleInfo, other.BattleInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060033F7 RID: 13303 RVA: 0x0008ED94 File Offset: 0x0008CF94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.StageId != 0U)
			{
				num ^= this.StageId.GetHashCode();
			}
			if (this.battleInfo_ != null)
			{
				num ^= this.BattleInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060033F8 RID: 13304 RVA: 0x0008EE02 File Offset: 0x0008D002
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060033F9 RID: 13305 RVA: 0x0008EE0A File Offset: 0x0008D00A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060033FA RID: 13306 RVA: 0x0008EE14 File Offset: 0x0008D014
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Retcode);
			}
			if (this.battleInfo_ != null)
			{
				output.WriteRawTag(26);
				output.WriteMessage(this.BattleInfo);
			}
			if (this.StageId != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.StageId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060033FB RID: 13307 RVA: 0x0008EE8C File Offset: 0x0008D08C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.StageId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.StageId);
			}
			if (this.battleInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.BattleInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060033FC RID: 13308 RVA: 0x0008EEFC File Offset: 0x0008D0FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(EnterStrongChallengeActivityStageScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.StageId != 0U)
			{
				this.StageId = other.StageId;
			}
			if (other.battleInfo_ != null)
			{
				if (this.battleInfo_ == null)
				{
					this.BattleInfo = new SceneBattleInfo();
				}
				this.BattleInfo.MergeFrom(other.BattleInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060033FD RID: 13309 RVA: 0x0008EF78 File Offset: 0x0008D178
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060033FE RID: 13310 RVA: 0x0008EF84 File Offset: 0x0008D184
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 26U)
					{
						if (num != 64U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.StageId = input.ReadUInt32();
						}
					}
					else
					{
						if (this.battleInfo_ == null)
						{
							this.BattleInfo = new SceneBattleInfo();
						}
						input.ReadMessage(this.BattleInfo);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04001464 RID: 5220
		private static readonly MessageParser<EnterStrongChallengeActivityStageScRsp> _parser = new MessageParser<EnterStrongChallengeActivityStageScRsp>(() => new EnterStrongChallengeActivityStageScRsp());

		// Token: 0x04001465 RID: 5221
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001466 RID: 5222
		public const int RetcodeFieldNumber = 2;

		// Token: 0x04001467 RID: 5223
		private uint retcode_;

		// Token: 0x04001468 RID: 5224
		public const int StageIdFieldNumber = 8;

		// Token: 0x04001469 RID: 5225
		private uint stageId_;

		// Token: 0x0400146A RID: 5226
		public const int BattleInfoFieldNumber = 3;

		// Token: 0x0400146B RID: 5227
		private SceneBattleInfo battleInfo_;
	}
}
